/**
 * @(#)EnumIntegerInterface.java, 2018/2/2.
 * <p/>
 * Copyright 2018 Kerr Wang, Inc. All rights reserved.
 * KERRWANG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package org.wangzx.exercise.enums;

/**
 * @author hzwangzuxiang(ahscwzx@163.com)
 */
public interface EnumIntegerInterface<T> {

    /**
     * 获得当前枚举类的int值
     *
     * @return
     */
    int getValue();

    /**
     * 根据intValue生成对应的Enum对象
     *
     * @param intValue
     * @return
     */
    T genEnumByIntValue(int intValue);
}

